<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增用户文件夹')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content ">
    <div style="padding: 20px">
        <form class="form-horizontal" id="form-doc-add">
            <input name="fileType" value="0" type="hidden">
            <input name="parentId" type="hidden" th:value="${parentId}"/>
            <div class="form-group row">
                <label class="col-sm-3 control-label is-required">文件夹名称：</label>
                <div class="col-sm-8">
                    <input name="fileName" class="form-control"  required  type="text">
                </div>
            </div>
        </form>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "gy/userDoc"
    $("#form-doc-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-doc-add').serialize());
        }
    }
</script>
</body>
</html>
